; in common.c
extern do_dump_registers

[GLOBAL dump_registers]

dump_registers:
	;That'll put the value of eip, the instruction pointer, into eax.
	mov eax, [esp]
	pusha
        push cs
	push ds
	push eax ; IP onto stack
	call do_dump_registers
	add esp, 12
	popa
	ret
